package indi.pers.priv.onem;

import java.util.Random;

/**
 * 小敌机:是飞行物
 */
public class Airplane extends FlyingObject{
    private int speed; //移动速度
    public Airplane(){
        super(48,50);
        /*width=48; //小敌机宽高看图片属性
        height=50;
        Random rand = new Random();
        //小敌机初始位置在窗口外(看不到为负) x:0到(窗口宽-小敌机宽)内的随机数
        x= rand.nextInt(World.WIDTH-width);
        y=-height;
        speed=2;*/
    }
}
